/**
 * 
 */
package com.jinmei.mail.response;

import com.jinmei.mail.oauth.OAuth;
import com.jinmei.remote.response.BaseResponse;

/**
 * @author richard
 *
 */
public class AccessTokenResponse extends BaseResponse {
	
    public String getAccessToken() {
        return getParam(OAuth.OAUTH_ACCESS_TOKEN);
    }

    public Long getExpiresIn() {
        String value = getParam(OAuth.OAUTH_EXPIRES_IN);
        return value == null? null: Long.valueOf(value);
    }

    public String getRefreshToken() {
        return getParam(OAuth.OAUTH_REFRESH_TOKEN);
    }

    public String getTokenType() {
        return getParam(OAuth.OAUTH_TOKEN_TYPE);
    }
    
}
